const routers = [
    {
        path: '/',
        component: (resolve) => require(['./views/main.vue'], resolve),
        children:[
			    {
			        path: '/list',
			        component: (resolve) => require(['./views/list.vue'], resolve)
			    }, {
                    path: '/add',
                    name:'add',
                    component: (resolve) => require(['./views/add.vue'], resolve)
                },{
                    path: '/userlist',
                    component: (resolve) => require(['./views/userlist.vue'], resolve)
                },{
                    path: '/userupdate',
                     name:'userupdate',
                    component: (resolve) => require(['./views/userupdate.vue'], resolve)
                },{
                    path: '/orderlist',
                    component: (resolve) => require(['./views/orderlist.vue'], resolve)
                },{
                    path: '/orderupdate',
                     name:'orderupdate',
                    component: (resolve) => require(['./views/orderupdate.vue'], resolve)
                },{
                    path: '/recommend',
                    component: (resolve) => require(['./views/recommend.vue'], resolve)
                }

        ]
    },{
      path:'/login',
      component: (resolve) => require(['./views/login.vue'], resolve),
    }
];
export default routers;
